import {request_http} from './http.js'

export const code2Session = (data) => {
  return request_http({
    url: "/applet/wx/code2Session",
    method: "POST",
    data: data
  })
}

export const authlogin = (data) => {
  return request_http({
    url: "/applet/Wx/authlogin",
    method: "POST",
    data: data
  })
}

export const getPatuser = (data) => {
  return request_http({
    url: "/applet/Patuser/getPatuser",
    method: "POST",
    data: data
  })
}

export const putUserInfo = (data) => {
  return request_http({
    url: "/applet/Patuser/putUserInfo",
    method: "POST",
    data: data
  })
}

export const getSendSms = (data) => {
  return request_http({
    url: "/applet/Sms/getSendSms",
    method: "POST",
    data: data
  })
}

export const bindMobile = (data) => {
  return request_http({
    url: "/applet/Patuser/bindMobile",
    method: "POST",
    data: data
  })
}

export const addFeedback = (data) => {
  return request_http({
    url: "/applet/Patuser/addFeedback",
    method: "POST",
    data: data
  })
}

export const addHighBlood = (data) => {
  return request_http({
    url: "/applet/Quesurvey/addHighBlood",
    method: "POST",
    data: data
  })
}

export const addPit = (data) => {
  return request_http({
    url: "/applet/Quesurvey/addPit",
    method: "POST",
    data: data
  })
}

export const addSyndrome = (data) => {
  return request_http({
    url: "/applet/Quesurvey/addSyndrome",
    method: "POST",
    data: data
  })
}

export const quesurveyDetails = (data) => {
  return request_http({
    url: "/applet/Patuser/quesurveyDetails",
    method: "POST",
    data: data
  })
}

export const bloodList = (data) => {
  return request_http({
    url: "/applet/Patuser/bloodList",
    method: "POST",
    data: data
  })
}

export const getDayBlood = (data) => {
  return request_http({
    url: "/applet/Patuser/getDayBlood",
    method: "POST",
    data: data
  })
}

export const addBlood = (data) => {
  return request_http({
    url: "/applet/Quesurvey/addBlood",
    method: "POST",
    data: data
  })
}

export const greetings = (data) => {
  return request_http({
    url: "/applet/Patuser/greetings",
    method: "POST",
    data: data
  })
}
